#include "threadWriteLog.h"
#include "WriteLog.h"

ThreadWriteLog::ThreadWriteLog(QObject *parent):
    QThread(parent)
{

}

void ThreadWriteLog::run()
{
    writeLog=new WriteLog();
    connect(this,SIGNAL(sigWriteLog(QByteArray)),writeLog,
            SLOT(slotWriteLog(QByteArray)));
    exec();
}

ThreadWriteLog::~ThreadWriteLog()
{
    writeLog->deleteLater();
    exit(0);
    wait(500);
}
